import axios from "../utils/axios.ts";

export function getUserInfo(){
    return axios.get('/user/info');
}

export function EditUserInfo(params){
    return axios.put('/user/login',params)
}

export function login(params){
    return axios.post('/user/login',params);
}

export function logout(){
    return axios.post('/user/logout');
}

export function register(params){
    return axios.post('/user/register',params);
}